/**
 *      path         页面路由地址
 *      navShow      是否显示页面头部
 *      tabShow      是否显示页面底部导航
 *      title        页面标题
 *      keepAlive    是否缓存页面
 *      @type {*[]}
 */
const routers = [{
    path: '/',
    redirect: '/index'
},
{
    path: '/index',
    component: resolve => require(['../pages/Index'], resolve),
    name: 'Index',
    meta: {
        navShow: false,
        tabShow: true,
        keepAlive: true,
        isLogin: true
    }
},
{
    path: '/login',
    component: resolve => require(['../pages/login/Login'], resolve),
    name: 'Login',
    meta: {
        navShow: true,
        tabShow: false,
        title: '用户登录',
        keepAlive: false
    }
},
{
    path: '/firmorder',
    component: resolve => require(['../pages/order/FirmOrder'], resolve),
    name: 'FirmOrder',
    meta: {
        tabShow: false,
        navShow: true,
        title: '订单确认',
        keepAlive: false,
        isLogin: true
    }
},
{
    path: '/cashierdesk',
    component: resolve => require(['../pages/order/CashierDesk'], resolve),
    name: 'CashierDesk',
    meta: {
        tabShow: false,
        title: '订单支付',
        keepAlive: false,
        isLogin: true
    }
},
{
    path: '/payresult',
    component: resolve => require(['../pages/order/PayResult'], resolve),
    name: 'PayResult',
    meta: {
        tabShow: false,
        navShow: true,
        title: '支付结果',
        keepAlive: false,
        isLogin: true
    }
},
{
    path: '/bankcard',
    component: resolve => require(['../pages/balance/BankCard'], resolve),
    name: 'BankCard',
    meta: {
        navShow: true,
        tabShow: false,
        title: '添加银行卡',
        keepAlive: false
    }
},
{
    path: '/mybankcardlist',
    component: resolve => require(['../pages/balance/MyBankCardList'], resolve),
    name: 'MyBankCardList',
    meta: {
        navShow: true,
        tabShow: false,
        title: '我的银行卡',
        keepAlive: false
    }
},
{
    path: '/register',
    component: resolve => require(['../pages/register/Register'], resolve),
    name: 'Register',
    meta: {
        navShow: true,
        tabShow: false,
        title: '用户注册',
        keepAlive: false
    }
},
{
    path: '/forget',
    component: resolve => require(['../pages/forget/forget'], resolve),
    name: 'forget',
    meta: {
        navShow: true,
        tabShow: false,
        title: '忘记密码',
        keepAlive: false
    }
}
]

export default routers
